package com.my.blog.website.service.impl;

import com.my.blog.website.dao.TGradeMapper;
import com.my.blog.website.model.Vo.TGrade;
import com.my.blog.website.service.IGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Create by 廉雪峰
 * Date: 2019/1/26 19:41
 * blog: www.soulblack.top
 * Description:
 */
@Service
public class GradeServiceImpl implements IGradeService {

    @Resource
    private TGradeMapper tGradeMapper;

    @Override
    public int insertGrade(TGrade tGrade) {
        return tGradeMapper.insert(tGrade);
    }

    @Override
    public List<TGrade> selectGrade() {
        return tGradeMapper.selectGrade();
    }
}
